package com.meizi.user.service.biz;

import com.meizi.user.service.bo.AuthLoginBo;
import com.meizi.user.service.enums.LoginTypeEnum;
import com.meizi.user.service.mapper.entitys.TbMember;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

/**
 * 咕泡学院，只为更好的你
 * 咕泡学院-Mic: 2227324689
 * http://www.gupaoedu.com
 **/
@Service
public class PhoneCodeLoginProcessor extends AbstractLogin {
    @Override
    public int getLoginType() {
        return LoginTypeEnum.PHONE_CODE.getCode();
    }

    @Override
    public void validate(AuthLoginBo authLoginBo) {
        if (StringUtils.isBlank(authLoginBo.getPhone())) {
            //TODO
        }
    }

    @Override
    public TbMember doProcessor(AuthLoginBo authLoginBo) {
        return null;
    }
}
